String[].Sort (gb)
Function Sort ( [ Mode As Integer ] ) As String[]
 
Sort the array and return it.
The 
Mode argument is a combination of the comparison flags defined in 
String comparison methods and
one of the following direction flag:
| gb.Ascent | Specify an ascending sort. This is the default. | 
| gb.Descent | Specify a descending sort. | 
Examples
Dim S as String
Dim SSS as String[]=["abcdefghij", "1234567890", "ABCDEFGHIJ"]
'
For each S in SSS.sort(gb.Ascent)
  Print S
Next
' The empty set of parentheses is REQUIRED when sort is called
' without the optional mode parameter and is expected to return 
' an array.
For each S in SSS.sort()
  Print S
Next
' The empty set of parentheses is NOT required to sort the array
' without returning anything.
SSS.sort
For each S in SSS
  Print S
Next
' all three examples print the following:
1234567890
ABCDEFGHIJ
abcdefghij
See also